<template>
    <div class="form-item-desc">
        <div class="label">
            <FormItem
                :prop="prop"
                :label="label"
                :required="required"
            >
                <slot></slot>
            </FormItem>
        </div>
        <div class="placeholder">{{ placeholder }}</div>
    </div>
</template>

<script>
export default {
    props: {
        prop: {
            type: String,
            default: ''
        },
        label: {
            type: String,
            default: ''
        },
        required: {
            type: Boolean,
            default: false
        },
        placeholder: {
            type: String,
            default: ''
        }
    }
}
</script>

<style scoped>
.form-item-desc {
    display: flex;
}
.form-item-desc .label {
    flex-shrink: 0;
    margin-right: 100px;
    min-width: 320px;
}
.form-item-desc .placeholder {
    flex: 1;
    margin-top: 17px;
    padding-top: 6px;
    line-height: 20px;
    color: #999;
}
</style>